<!-- 满减优惠券列表 Start -->
<table class="table table-striped ddd-table">
	<thead>
		<tr>
			<th>优惠券名称</th>
			<th>关联商品名称</th>
			<th>优惠条件</th>
			<th>优惠内容</th>
			<th>分发范围</th>
			<th>使用有效期</th>
			<th>已使用/已领取</th>
			<th>状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<col width="15%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="10%"></col>
		<col width="15%"></col>
		{{if isEmpty(records)}}
			
		{{else}}
			{{each records as data index}}
				<tr class="con_detail_cls">
					<td>{{data.act_name}}</td>
					<td>{{data.goods_name}}</td>
					<td>用户消费满<span>{{data.coupon_condition}}</span>元</td>
					<td>减免金额<span>{{data.reduce_price}}</span></td>
					{{if data.user_range == 1}}
						<td>全部用户</td>
					{{else if data.user_range == 2}}
						<td>
							<p>指定用户：</p>
							<div class="zdyhbox" data-placement="top" data-content="{{each data.coupon_user_list as coupon_user}}{{coupon_user.user_account}}   {{/each}}">
								{{each data.coupon_user_list as coupon_user index}}
									{{if index <6}}
										{{coupon_user.user_account}}<br/>
									{{/if}}
								{{/each}}
							</div>
							
						</td>
					{{else if data.user_range == 3}}
						<td>未注册用户</td>
					{{else}}
						<td></td>
					{{/if}}
					<td>{{dateFormat(data.valid_begin_time,'yyyy/MM/dd hh:mm:ss')}}~{{dateFormat(data.valid_end_time,'yyyy/MM/dd hh:mm:ss')}}</td>
					<td>{{data.used_num}} / {{data.taked_num}}</td>
					{{if data.act_status == 1}}
						<td><span class="act_status_cls">未开始</span></td>
					{{else if data.act_status == 2}}
						<td><span class="f-green act_status_cls">进行中</span></td>
					{{else if data.act_status == 3}}
						<td><span class="f-red act_status_cls">已过期</span></td>
					{{else if data.act_status == 4}}
						<td><span class="f-gray act_status_cls">已失效</span></td>
					{{else}}
						<td></td>
					{{/if}}
					<td>
						<a href="javascript:void(0);" class="viewCoupon" data-id="{{data.id}}" data-name="{{data.act_name}}">查看优惠券</a>
						{{if data.act_status == 1}}
							<a href="#market/activitycoupon/edit/{{data.id}}/{{data.coupon_type}}/{{pageNo}}" class="ml10 editCoupon">编辑</a>&nbsp;
						{{/if}}
						{{if data.act_status == 1 || data.act_status == 2}}
							<a href="javascript:void(0);" class="f-gray ml10 disabledCoupon" data-id="{{data.id}}">失效</span>
						{{/if}}
					</td>
				</tr>
			{{/each}}
		{{/if}}
	</tbody>
</table>
	<!-- 满减优惠券列表  End -->